package main

import (
	"fmt"
	"net/http"
	"sync"
)

func req()  {
	req,err:= http.NewRequest(http.MethodGet,"http://bs.echosocket.com/",nil)
	if err !=nil{
		fmt.Println(err.Error())
	}

	client := http.DefaultClient
	res,err:=client.Do(req)
	if err !=nil{
		fmt.Println(err.Error())
		return
	}
	defer res.Body.Close()
}
func main()  {
	wg:= sync.WaitGroup{}
	wg.Add(3000)
	for i:=0;i<3000;i++{
		go func() {
			defer wg.Done()
			req()
		}()
	}
	wg.Wait()


}
//本周安排 2021微服务实战信息

